<div class="problemindexholder" problemindex="C">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     C. Tea Party
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     256 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     Polycarp invited all his friends to the tea party to celebrate the holiday. He has
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     cups, one for each of his
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     friends, with volumes
     <span class="tex-span">
      <i>
       a
      </i>
      <sub class="lower-index">
       1
      </sub>
      ,
      <i>
       a
      </i>
      <sub class="lower-index">
       2
      </sub>
      , ...,
      <i>
       a
      </i>
      <sub class="lower-index">
       <i>
        n
       </i>
      </sub>
     </span>
     . His teapot stores
     <span class="tex-span">
      <i>
       w
      </i>
     </span>
     milliliters of tea (
     <span class="tex-span">
      <i>
       w
      </i>
      ≤
      <i>
       a
      </i>
      <sub class="lower-index">
       1
      </sub>
      +
      <i>
       a
      </i>
      <sub class="lower-index">
       2
      </sub>
      + ... +
      <i>
       a
      </i>
      <sub class="lower-index">
       <i>
        n
       </i>
      </sub>
     </span>
     ). Polycarp wants to pour tea in cups in such a way that:
    </p>
    <ul>
     <li>
      Every cup will contain tea for at least half of its volume
     </li>
     <li>
      Every cup will contain integer number of milliliters of tea
     </li>
     <li>
      All the tea from the teapot will be poured into cups
     </li>
     <li>
      All friends will be
      <span class="tex-font-style-it">
       satisfied
      </span>
      .
     </li>
    </ul>
    <p>
     Friend with cup
     <span class="tex-span">
      <i>
       i
      </i>
     </span>
     won't be
     <span class="tex-font-style-it">
      satisfied
     </span>
     , if there exists such cup
     <span class="tex-span">
      <i>
       j
      </i>
     </span>
     that cup
     <span class="tex-span">
      <i>
       i
      </i>
     </span>
     contains less tea than cup
     <span class="tex-span">
      <i>
       j
      </i>
     </span>
     but
     <span class="tex-span">
      <i>
       a
      </i>
      <sub class="lower-index">
       <i>
        i
       </i>
      </sub>
      &gt;
      <i>
       a
      </i>
      <sub class="lower-index">
       <i>
        j
       </i>
      </sub>
     </span>
     .
    </p>
    <p>
     For each cup output how many milliliters of tea should be poured in it. If it's impossible to pour all the tea and satisfy all conditions then output
     <span class="tex-font-style-tt">
      -1
     </span>
     .
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     The first line contains two integer numbers
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     and
     <span class="tex-span">
      <i>
       w
      </i>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       n
      </i>
      ≤ 100
     </span>
     ,
     <img align="middle" class="tex-formula" src="/predownloaded/a6/a6/a6a6dfa17d298b42d3f8807bda60661a645a3ac4.png" style="max-width: 100.0%;max-height: 100.0%;"/>
     ).
    </p>
    <p>
     The second line contains
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     numbers
     <span class="tex-span">
      <i>
       a
      </i>
      <sub class="lower-index">
       1
      </sub>
      ,
      <i>
       a
      </i>
      <sub class="lower-index">
       2
      </sub>
      , ...,
      <i>
       a
      </i>
      <sub class="lower-index">
       <i>
        n
       </i>
      </sub>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       a
      </i>
      <sub class="lower-index">
       <i>
        i
       </i>
      </sub>
      ≤ 100
     </span>
     ).
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     Output how many milliliters of tea every cup should contain. If there are multiple answers, print any of them.
    </p>
    <p>
     If it's impossible to pour all the tea and satisfy all conditions then output
     <span class="tex-font-style-tt">
      -1
     </span>
     .
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>2 10<br/>8 7<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>6 4 <br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>4 4<br/>1 1 1 1<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>1 1 1 1 <br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>3 10<br/>9 8 10<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>-1<br/></pre>
     </div>
    </div>
   </div>
   <div class="note">
    <div class="section-title">
     Note
    </div>
    <p>
     In the third example you should pour to the first cup at least 5 milliliters, to the second one at least 4, to the third one at least 5. It sums up to 14, which is greater than 10 milliliters available.
    </p>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
